<!--
 * @Author: zengwj
 * @Date: 2022-07-25 11:24:02
 * @LastEditors: zengwj
 * @LastEditTime: 2022-07-25 11:24:03
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    <style>* {
      margin: 0;
      padding: 0;
    }

    .box {
      display: flex;
      height: 200px;
      margin-top: 20px;
      width: 400px;
      margin: 20px auto 0 auto;
    }

    .left {
      width: 100px;
      height: 100%;
      background: red;
    }

    .right {
      flex: auto;
      height: 100%;
      background: blue;
      color: #fff;
    }

    .text {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  </style>

  </style>
</head>

<body>
  <div class="box">
    <div class="left">123</div>
    <div class="right">
      <p class="text">
        这是一段很长长长长长长长长长长长长长长长长长长文字，这是一段很长长长长长长长长长长长长长长长长长长文字
      </p>
    </div>
  </div>
  <div class="box" style="background: green">正常的box</div>

</body>

</html>